<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- qaccessibleobject.cpp -->
  <title>QAccessibleObject Class | Qt GUI 5.14.2</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td ><a href="../qtdoc/index.html">Qt 5.14</a></td><td ><a href="qtgui-index.html">Qt GUI</a></td><td ><a href="qtgui-module.html">C++ Classes</a></td><td >QAccessibleObject</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right"><a href="qtgui-index.html">Qt 5.14.2 Reference Documentation</a></td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#reimplemented-public-functions">Reimplemented Public Functions</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QAccessibleObject Class</h1>
<!-- $$$QAccessibleObject-brief -->
<p>The QAccessibleObject class implements parts of the <a href="qaccessibleinterface.html">QAccessibleInterface</a> for QObjects. <a href="#details">More...</a></p>
<!-- @@@QAccessibleObject -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QAccessibleObject&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += gui</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qaccessibleinterface.html">QAccessibleInterface</a></td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="../qtwidgets/qaccessiblewidget.html">QAccessibleWidget</a></p>
</td></tr></table></div><ul>
<li><a href="qaccessibleobject-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleobject.html#QAccessibleObject">QAccessibleObject</a></b>(QObject *<i>object</i>)</td></tr>
</table></div>
<a name="reimplemented-public-functions"></a>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual QAccessibleInterface *</td><td class="memItemRight bottomAlign"><b><a href="qaccessibleobject.html#childAt">childAt</a></b>(int <i>x</i>, int <i>y</i>) const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleobject.html#isValid">isValid</a></b>() const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QObject *</td><td class="memItemRight bottomAlign"><b><a href="qaccessibleobject.html#object">object</a></b>() const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QRect </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleobject.html#rect">rect</a></b>() const override</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleobject.html#setText">setText</a></b>(QAccessible::Text <i>t</i>, const QString &amp;<i>text</i>) override</td></tr>
</table></div>
<a name="protected-functions"></a>
<h2 id="protected-functions">Protected Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qaccessibleobject.html#dtor.QAccessibleObject">~QAccessibleObject</a></b>()</td></tr>
</table></div>
<a name="details"></a>
<!-- $$$QAccessibleObject-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>This class is part of <a href="../qtdoc/accessible-qwidget.html">Accessibility for QWidget Applications</a>.</p>
<p>This class is mainly provided for convenience. All subclasses of the <a href="qaccessibleinterface.html">QAccessibleInterface</a> that provide implementations of non-widget objects should use this class as their base class.</p>
</div>
<p><b>See also </b><a href="qaccessible.html">QAccessible</a> and <a href="../qtwidgets/qaccessiblewidget.html">QAccessibleWidget</a>.</p>
<!-- @@@QAccessibleObject -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QAccessibleObject[overload1]$$$QAccessibleObjectQObject* -->
<h3 class="fn" id="QAccessibleObject"><a name="QAccessibleObject"></a>QAccessibleObject::<span class="name">QAccessibleObject</span>(<span class="type"><a href="../qtcore/qobject.html">QObject</a></span> *<i>object</i>)</h3>
<p>Creates a QAccessibleObject for <i>object</i>.</p>
<!-- @@@QAccessibleObject -->
<!-- $$$~QAccessibleObject[overload1]$$$~QAccessibleObject -->
<h3 class="fn" id="dtor.QAccessibleObject"><a name="dtor.QAccessibleObject"></a><code>[virtual protected] </code>QAccessibleObject::<span class="name">~QAccessibleObject</span>()</h3>
<p>Destroys the <a href="qaccessibleobject.html">QAccessibleObject</a>.</p>
<p>This only happens when a call to release() decrements the internal reference counter to zero.</p>
<!-- @@@~QAccessibleObject -->
<!-- $$$childAt[overload1]$$$childAtintint -->
<h3 class="fn" id="childAt"><a name="childAt"></a><code>[override virtual] </code><span class="type"><a href="qaccessibleinterface.html">QAccessibleInterface</a></span> *QAccessibleObject::<span class="name">childAt</span>(<span class="type">int</span> <i>x</i>, <span class="type">int</span> <i>y</i>) const</h3>
<p>Reimplements: <a href="qaccessibleinterface.html#childAt">QAccessibleInterface::childAt</a>(int x, int y) const.</p>
<!-- @@@childAt -->
<!-- $$$isValid[overload1]$$$isValid -->
<h3 class="fn" id="isValid"><a name="isValid"></a><code>[override virtual] </code><span class="type">bool</span> QAccessibleObject::<span class="name">isValid</span>() const</h3>
<p>Reimplements: <a href="qaccessibleinterface.html#isValid">QAccessibleInterface::isValid</a>() const.</p>
<!-- @@@isValid -->
<!-- $$$object[overload1]$$$object -->
<h3 class="fn" id="object"><a name="object"></a><code>[override virtual] </code><span class="type"><a href="../qtcore/qobject.html">QObject</a></span> *QAccessibleObject::<span class="name">object</span>() const</h3>
<p>Reimplements: <a href="qaccessibleinterface.html#object">QAccessibleInterface::object</a>() const.</p>
<!-- @@@object -->
<!-- $$$rect[overload1]$$$rect -->
<h3 class="fn" id="rect"><a name="rect"></a><code>[override virtual] </code><span class="type"><a href="../qtcore/qrect.html">QRect</a></span> QAccessibleObject::<span class="name">rect</span>() const</h3>
<p>Reimplements: <a href="qaccessibleinterface.html#rect">QAccessibleInterface::rect</a>() const.</p>
<!-- @@@rect -->
<!-- $$$setText[overload1]$$$setTextQAccessible::TextconstQString& -->
<h3 class="fn" id="setText"><a name="setText"></a><code>[override virtual] </code><span class="type">void</span> QAccessibleObject::<span class="name">setText</span>(<span class="type"><a href="qaccessible.html#Text-enum">QAccessible::Text</a></span> <i>t</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>text</i>)</h3>
<p>Reimplements: <a href="qaccessibleinterface.html#setText">QAccessibleInterface::setText</a>(QAccessible::Text t, const QString &amp;text).</p>
<!-- @@@setText -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2020 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>
